###############################################################################
# Various GMS Sample Integration targets
LOCAL_PATH:= $(my-dir)
SOURCE_PATH := ../../../partner_gms/apps/GmsSampleIntegration
RES_DHS_PATH := $(LOCAL_PATH)/res_dhs_full
ifneq (,$(findstring Solo,$(TARGET_BOARD)))
    RES_DHS_PATH = $(LOCAL_PATH)/res_dhs_full_slo
endif
ifneq (,$(findstring Storm,$(TARGET_BOARD)))
    RES_DHS_PATH = $(LOCAL_PATH)/res_dhs_full_str
endif
# GmsSampleIntegration
include $(CLEAR_VARS)
LOCAL_PACKAGE_NAME := GmsSampleIntegration
LOCAL_MODULE_OWNER := google
LOCAL_MODULE_TAGS := optional
LOCAL_SYSTEM_EXT_MODULE := true
LOCAL_CERTIFICATE := platform
LOCAL_AAPT_FLAGS += --auto-add-overlay
LOCAL_OVERRIDES_PACKAGES := GmsSampleIntegration_unisoc GmsSampleIntegration
LOCAL_SRC_FILES := $(call all-java-files-under, $(SOURCE_PATH)/src)
LOCAL_RESOURCE_DIR := \
    $(RES_DHS_PATH) \
    $(LOCAL_PATH)/res_on_device_wallpapers \
    $(LOCAL_PATH)/$(SOURCE_PATH)/res
LOCAL_SDK_VERSION := current
include $(BUILD_PACKAGE)

# Include all the makefiles for subdirectories.
include $(call all-makefiles-under,$(LOCAL_PATH))
